package com.service;

import com.dto.in.RegisterInfo;
import com.entity.LoginInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2019/1/2 0002.
 */
public interface LoginService {

    int findUserYou50();

    int login(String wxNickName, String wxSex, String wxAvatar, String userType, String openId,String newOpenId);

    LoginInfo findUser(String openId);

    Map findUserType(String openId);

    String findPhone(Integer userId);

    int updatePhone(Integer userId, String phone,Integer type);

    Map findUserMsg(Integer userId,Integer userId1);

    List<LoginInfo> findUserMsg1(String userId);

    LoginInfo findUserMsg2(Integer userId);

    int newRegister(RegisterInfo registerInfo);

    int findRegisterIsBeing(Integer userId);

    int findRanCodeIsBeing(String code);

    String findInvitationCode(Integer userId);

    int findTimedTask();

    List<LoginInfo> findUserAll();

}
